package cn.com.basic.framework.exception.exceptions;

import cn.com.basic.framework.exception.enums.IErrorCode;

/**
 * 客户端异常
 * @author mj1996
 */
public class ClientException extends RuntimeException{

    private final IErrorCode error;
    private final String msg;

    public ClientException(IErrorCode error, String msg) {
        super(String.format("Code:[%s],Desc:[%s]", error.getKey(), error.getValue()));
        this.error = error;
        this.msg = msg;
    }
}
